<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/hello.js"></script>

    <script type="text/javascript">
        prompt("请告诉我你睡了多久??");
        
        var a=prompt('请输入你的取款金额:',100000)
        var b=confirm('你确认取出:'+a)
        if(b){
            alert("你的账户少了:"+a+'元')
        }else{
            alert("你已经取消取款！")
        }

        
        
        //内嵌js
    </script>
</head>
<body>
    <!-- 行内js -->
    <a href="javascript:alert('啊！痛！！！')">点我</a>
    
</body>
</html>